package cn.xqapp.TimeServer;

import cn.xqapp.core.BaseServer;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;

public class TimeServer extends BaseServer {
    public TimeServer(int port){
        super(port, ()-> new ChannelInitializer<SocketChannel>() {
            @Override
            public void initChannel(SocketChannel ch) {
                ch.pipeline().addLast(new TimeEncoder(), new TimeServerHandler());
            }
        });
    }
}
